import 'package:flutter/material.dart';

class MessageDetailsPage extends StatelessWidget {
  dynamic data;

  MessageDetailsPage(this.data);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: new AppBar(
        backgroundColor: Color(0XFF00A5F1),
        automaticallyImplyLeading: false,
        //设置没有返回按钮
        title: Text(
          "消息详情",
          style: TextStyle(fontSize: 18),
        ),
        elevation: 0,
        centerTitle: true,
      ),
      body: Container(
        width: double.infinity,
        padding: EdgeInsets.only(top: 10, left: 10, right: 10),
        color: Colors.white,
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            Text(
              "${data["creationTime"]}",
              style: TextStyle(fontSize: 14, color: Color(0xff333333)),
            ),
            Padding(
              padding: const EdgeInsets.only(top: 8.0),
              child: Text(
                "${data["note"]}",
                style: TextStyle(fontSize: 14, color: Color(0xff333333)),
              ),
            )
          ],
        ),
      ),
    );
  }
}
